package com.rainbow.common

import com.rainbow.security.entity.User
import org.springframework.security.core.context.SecurityContextHolder

class UserUtils {

    companion object {
        fun getCurrentHr(): User {
            return SecurityContextHolder.getContext().authentication.principal as User
        }
    }
}